import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const OTHERS: AppRouteRecordRaw = {
  path: '/others',
  name: 'others',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '其他功能',
    requiresAuth: true,
    roles: ['*'],
    icon: 'icon-dashboard',
    order: 999,
  },
  children: [
    {
      path: 'rank',
      name: 'rank',
      component: () => import('@/views/others/rank.vue'),
      meta: {
        locale: '排名',
        requiresAuth: true,
      },
    },
    {
      path: 'player',
      name: 'player',
      component: () => import('@/views/others/player.vue'),
      meta: {
        locale: '选手赛事',
        requiresAuth: true,
      },
    },
    {
      path: 'statistic',
      name: 'statistic',
      component: () => import('@/views/others/statistic.vue'),
      meta: {
        locale: '统计',
        requiresAuth: true,
      },
    },
  ],
};

export default OTHERS;
